﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Web.Profile;
/// <summary>
/// Summary description for ProfileCommon
/// </summary>
public class ProfileCommon : System.Web.Profile.ProfileBase
{

    public virtual string Email
    {
        get
        {
            return ((string)(this.GetPropertyValue("Email")));
        }
        set
        {
            this.SetPropertyValue("Email", value);
        }
    }

    public virtual string UserName
    {
        get
        {
            return ((string)(this.GetPropertyValue("UserName")));
        }
        set
        {
            this.SetPropertyValue("UserName", value);
        }
    }

    public virtual string LastName
    {
        get
        {
            return ((string)(this.GetPropertyValue("LastName")));
        }
        set
        {
            this.SetPropertyValue("LastName", value);
        }
    }

    public virtual string FirstName
    {
        get
        {
            return ((string)(this.GetPropertyValue("FirstName")));
        }
        set
        {
            this.SetPropertyValue("FirstName", value);
        }
    }

    public virtual ProfileGroupEmployer Employer
    {
        get
        {
            return ((ProfileGroupEmployer)(this.GetProfileGroup("Employer")));
        }
    }

    public virtual ProfileGroupJobSeeker JobSeeker
    {
        get
        {
            return ((ProfileGroupJobSeeker)(this.GetProfileGroup("JobSeeker")));
        }
    }

    public virtual ProfileCommon GetProfile(string username)
    {
        return ((ProfileCommon)(ProfileBase.Create(username)));
    }
}

public class ProfileGroupEmployer : System.Web.Profile.ProfileGroupBase
{

    public virtual int CompanyID
    {
        get
        {
            return ((int)(this.GetPropertyValue("CompanyID")));
        }
        set
        {
            this.SetPropertyValue("CompanyID", value);
        }
    }
}

public class ProfileGroupJobSeeker : System.Web.Profile.ProfileGroupBase
{

    public virtual int ResumeID
    {
        get
        {
            return ((int)(this.GetPropertyValue("ResumeID")));
        }
        set
        {
            this.SetPropertyValue("ResumeID", value);
        }
    }
}